home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: [Q] Newbie problem with inheritance (PLEASE HELP!)
- Date: 14 Feb 1996 22:23:04 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4ftnc8$eib@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe15.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 13, 1996 06:24:35 in article <[Q] Newbie problem with inheritance
- (PLEASE HELP!)>, '"Abe L. Getchell" <panther@iglou.com>' wrote:
-
-
- >Let me see if I have this correct... in BC++ 4.51-
- >
- >In public inheritance public members stay public, protected members stay
- >protected, and the private members are NOT inherited to the derived class.
-
- >
- Well, actually they are. Private members are inherited in the sense that
- they are parts of the subclass -- they just aren't accessible to
- the subclass methods.
-
- >In protected inheritance, public members turn to protected members, and
- >protected members turn to private members, and private members of the
- >base class are NOT inherited to the derived class.
- >
- No. The level of inheritance specifies the maximum level of exposure.
- Public members drop down to this level; i.e., protected, but protected
- members remain as they are.
-
- >In private inheritance, public and protected members become private
- members,
- >and private members are NOT inherited to the derived class.
- >
- As stated above, private members are inherited, they're just not
- accessible.
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-